<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }

        .slider {
            position: relative;
            width: 800px;
            height: 327px;
            margin: 20px auto;
        }

        .slider img {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
        }

        .arrow {
            position: absolute;
            width: 40px;
            height: 80px;
            line-height: 80px;
            background-color: rgba(0, 0, 0, 0.1);
            color: #fff;
            top: 50%;
            transform: translateY(-50%);
            font-size: 40px;
            text-align: center;
            font-family: 黑体;
            cursor: pointer;
            /* display: none; */
            opacity: 0;
            transition: all 0.5s;
        }

        .slider:hover .arrow {
            /* display: block; */
            opacity: 1;
        }

        .arrow-left {
            left: 0;
        }

        .arrow-right {
            right: 0;
        }
    </style>
</head>

<body>
    <div class="slider">
        <img src="./imgs/01.jpg" alt="">
        <img src="./imgs/02.jpg" alt="">
        <img src="./imgs/03.jpg" alt="">
        <img src="./imgs/04.jpg" alt="">
        <img src="./imgs/05.jpg" alt="">
        <img src="./imgs/06.jpg" alt="">
        <div class="arrow arrow-left"> &lt; </div>
        <div class="arrow arrow-right"> &gt; </div>
    </div>
</body>

</html>